package com.bkfm.framework.sys.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.yak.core.service.BaseService;

import com.bkfm.framework.sys.api.service.IBkfmUserService;
import com.bkfm.framework.sys.api.store.IBkfmUserStore;
import com.bkfm.framework.sys.entity.BkfmThemes;
import com.bkfm.framework.sys.entity.BkfmUsers;

@Service
public class BkfmUserService extends BaseService<BkfmUsers> implements IBkfmUserService{

	@Resource
	private IBkfmUserStore bkfmUserStore;
	/**
	 * 登录
	 * @param users
	 * @return
	 * @throws Exception
	 */
	public BkfmUsers login(BkfmUsers users)throws Exception{
		return bkfmUserStore.selectLogin(users);
	}
	
	/**
	 * 查询用户系统主题
	 * @param users
	 * @return
	 * @throws Exception
	 */
	public BkfmThemes queryUserThemeStyle(BkfmUsers users)throws Exception{
		return bkfmUserStore.selectUserThemeStyle(users);
	}

}
